﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace sign_recognition
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            Double[] inputVector1 = new Double[3];
            inputVector1[0] = 0.9;
            inputVector1[1] = 0.9;
            inputVector1[2] = 0.1852;

            Double[] inputVector2 = new Double[3];
            inputVector2[0] = 0.888;
            inputVector2[1] = 0.888;
            inputVector2[2] = 0.9999;

            Double[] inputVector3 = new Double[3];
            inputVector3[0] = 0.54;
            inputVector3[1] = 0.98;
            inputVector3[2] = 0.35;

            Double[] inputVector4 = new Double[3];
            inputVector4[0] = 0.99;
            inputVector4[1] = 0.15;
            inputVector4[2] = 0.89;

            Double[] inputVector5 = new Double[3];
            inputVector5[0] = 0.87;
            inputVector5[1] = 0.97;
            inputVector5[2] = 0.864;

            Double[] inputVector6 = new Double[3];
            inputVector6[0] = 0.87;
            inputVector6[1] = 0.97;
            inputVector6[2] = 0.864;

            Double[] inputVector7 = new Double[3];
            inputVector7[0] = 0.87;
            inputVector7[1] = 0.97;
            inputVector7[2] = 0.864;

            Double[] inputVector8 = new Double[3];
            inputVector8[0] = 0.87;
            inputVector8[1] = 0.97;
            inputVector8[2] = 0.864;

            Double[] inputVector9 = new Double[3];
            inputVector9[0] = 0.87;
            inputVector9[1] = 0.97;
            inputVector9[2] = 0.864;

            Double[] inputVector10 = new Double[3];
            inputVector10[0] = 0.87;
            inputVector10[1] = 0.97;
            inputVector10[2] = 0.864;


            //FuzzyART fuzzyART = new FuzzyART();
            FuzzyART fuzzyART = new FuzzyART(inputVector1, false,0.1,0.9,1);


            fuzzyART.currentOutput = "2";
            fuzzyART.propagateNewInput(inputVector2);


            fuzzyART.currentOutput = "1";
            fuzzyART.propagateNewInput(inputVector1);

            fuzzyART.currentOutput = "3";
            fuzzyART.propagateNewInput(inputVector3);

            fuzzyART.currentOutput = "4";
            fuzzyART.propagateNewInput(inputVector4);

            fuzzyART.currentOutput = "5";
            fuzzyART.propagateNewInput(inputVector5);

            fuzzyART.currentOutput = "6";
            fuzzyART.propagateNewInput(inputVector6);

            fuzzyART.currentOutput = "7";
            fuzzyART.propagateNewInput(inputVector7);

            fuzzyART.currentOutput = "8";
            fuzzyART.propagateNewInput(inputVector8);

            fuzzyART.currentOutput = "9";
            fuzzyART.propagateNewInput(inputVector9);

            fuzzyART.currentOutput = "10";
            fuzzyART.propagateNewInput(inputVector10);

            


          //  fuzzyART.propagateNewInput(inputVector3);
           
        }
    }
}
